<?php

use Webman\Route;

Route::any('/api', function () {
    return json(['code' => 200, 'msg' => '欢迎来到影划算API']);
});

Route::group('/api/v1', function () {
    Route::get('/hello', \app\api\controller\v1\IndexController::class . '@index');
});

Route::group('/api/v1', function () {
    Route::get('/test', \app\api\controller\v1\IndexController::class . '@test');
})->middleware(\app\api\middleware\AuthTokenMiddleware::class);